const invoiceColumns = {
  invoice_setting: [
    {
      title: '发票类型',
      dataIndex: 'invoice_type',
      scopedSlots: { customRender: 'invoice_type' }
    },
    {
      title: '公司名称',
      dataIndex: 'company_name'
    },
    {
      title: '税点(%)',
      dataIndex: 'tax_point',
      scopedSlots: { customRender: 'tax_point' }
    },
    {
      title: '发票数量',
      dataIndex: 'stock',
      scopedSlots: { customRender: 'stock' }
    },
    // {
    //   title: '专票数量',
    //   dataIndex: 'z_stock',
    //   scopedSlots: { customRender: 'z_stock' }
    // },
    {
      title: '添加人',
      dataIndex: 'username'
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' },
      width: '110px'
    }
  ],
  invoice: [
    {
      title: '合同编号',
      dataIndex: 'contract_no',
      scopedSlots: { customRender: 'contract_no' }
    },
    // {
    //   title: '业务名称',
    //   dataIndex: 'tm_name',
    //   scopedSlots: { customRender: 'tm_name' }
    // },
    {
      title: '开票公司',
      dataIndex: 'company_name',
      scopedSlots: { customRender: 'company_name' }
    },
    {
      title: '开票金额',
      dataIndex: 'amount',
      sorter: true
    },
    // {
    //   title: '可开票金额',
    //   dataIndex: 'amount_paid',
    //   sorter: true
    // },
    {
      title: '申请时间',
      dataIndex: 'created_at',
      sorter: true
    },
    // {
    //   title: '开票时间',
    //   dataIndex: 'check_time',
    //   sorter: true
    // },
    {
      title: '提交顾问/组别/组长',
      dataIndex: 'username',
      scopedSlots: { customRender: 'username' }
    },
    {
      title: '发票模版',
      dataIndex: 'file_url',
      scopedSlots: { customRender: 'file_url' }
    },
    {
      title: '申请备注',
      dataIndex: 'notes',
      ellipsis: true
    },
    {
      title: '审核历史',
      dataIndex: 'is_check',
      scopedSlots: { customRender: 'is_check' }
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  invoiced: [
    {
      title: '合同编号',
      dataIndex: 'contract_no',
      scopedSlots: { customRender: 'contract_no' }
    },
    // {
    //   title: '发票抬头',
    //   dataIndex: 'header'
    // },
    {
      title: '开票公司',
      dataIndex: 'company_name',
      scopedSlots: { customRender: 'company_name' }
    },
    {
      title: '开票金额',
      dataIndex: 'amount',
      sorter: true
    },
    {
      title: '发票税',
      dataIndex: 'invoice_fee',
      sorter: true
    },
    {
      title: '申请时间',
      dataIndex: 'created_at',
      sorter: true
    },
    {
      title: '开票时间',
      dataIndex: 'invoice_time',
      sorter: true
    },
    {
      title: '提交顾问/组别/组长',
      dataIndex: 'username',
      scopedSlots: { customRender: 'username' }
    },
    {
      title: '发票模版',
      dataIndex: 'file_url',
      scopedSlots: { customRender: 'file_url' }
    },
    {
      title: '申请备注',
      dataIndex: 'notes',
      ellipsis: true
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  refuseInvoice: [
    {
      title: '合同编号',
      dataIndex: 'contract_no',
      scopedSlots: { customRender: 'contract_no' }
    },
    // {
    //   title: '业务名称',
    //   dataIndex: 'tm_name',
    //   scopedSlots: { customRender: 'tm_name' }
    // },
    {
      title: '开票公司',
      dataIndex: 'company_name',
      scopedSlots: { customRender: 'company_name' }
    },
    {
      title: '开票金额',
      dataIndex: 'amount',
      sorter: true
    },
    {
      title: '申请时间',
      dataIndex: 'created_at',
      sorter: true
    },
    {
      title: '拒绝时间',
      dataIndex: 'check_time',
      sorter: true
    },
    {
      title: '提交顾问/组别/组长',
      dataIndex: 'username',
      scopedSlots: { customRender: 'username' }
    },
    {
      title: '申请备注',
      dataIndex: 'notes',
      ellipsis: true
    },
    {
      title: '审核信息',
      dataIndex: 'remarks'
    },
    {
      title: '操作',
      dataIndex: 'action',
      scopedSlots: { customRender: 'action' }
    }
  ],
  express: [],
  history: [
    {
      title: '审核人',
      dataIndex: 'username'
    },
    {
      title: '审核时间',
      dataIndex: 'check_time_str'
    },
    {
      title: '审核结果',
      dataIndex: 'check_result'
    },
    {
      title: '审核信息',
      dataIndex: 'notes'
    }
  ],
  contractColumn: [
    {
      title: '合同编号',
      dataIndex: 'contract_no',
      scopedSlots: { customRender: 'contract_no' }
    },
    {
      title: '客户姓名',
      dataIndex: 'customer_name'
    },
    {
      title: '注册名称',
      dataIndex: 'tm_name',
      scopedSlots: { customRender: 'tm_name' }
    },
    {
      title: '联系电话',
      dataIndex: 'phone1',
      scopedSlots: { customRender: 'phone1' }
    },
    {
      title: '合同金额',
      dataIndex: 'amount',
      scopedSlots: { customRender: 'amount' }
    },
    {
      title: '审核时间',
      dataIndex: 'check_time'
    },
    {
      title: '客户地址',
      dataIndex: 'address'
    }
  ]
}

export default invoiceColumns
